#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<map>
#include<set>
using namespace std;

int main()
{
	set<int,greater<int>> s = { 1,1,7,6,2,4,9,8,3 };
	for (auto x : s)
	{
		cout << x << ' ';
	}
	cout << endl << endl;
	map<int,int> m = { {1,22},{2,33},{8,99},{4,55} };
	for (auto x : m)
	{
		cout << x.first << ' ' << x.second << endl;
	}

	return 0;
}